package com.cyh.pangu.offer;

public class Offer17 {

    public int[] printNumbers(int n) {
        int max = (int)Math.pow(10, n) - 1;
        int[] value = new int[max];
        for (int i = 0; i < max; i++) {
            value[i] = i + 1;
        }
        return value;
    }


    public static void main(String[] args) {
        Offer17 offer17 = new Offer17();
        int[] ints = offer17.printNumbers(2);
        System.out.println("ints[99]:" + ints[98]);
    }
}
